home *** CD-ROM | disk | FTP | other *** search
- Path: mars.efn.org!rose_ip179
- From: peterf@gears.efn.org
- Newsgroups: comp.lang.c++
- Subject: re: I need Help!
- Date: Thu, 25 Jan 96 17:26:04 GMT
- Organization: Oregon Public Networking
- Message-ID: <4e8oll$c3i@mars.efn.org>
- NNTP-Posting-Host: rose_ip179.efn.org
- X-Newsreader: News Xpress Version 1.0 Beta #3
-
- Dear Jeremy,
-
- Let me rewrite this so it works....
-
- void main(void)
- {
- char chr;
- chr = getche();
- if(chr=='q')
- goto b;
-
- b:
- cout << "it worked";
- }
-
- There you go, this should work. I cant remember but I think if you dont have
- a void in front of main then it wants to return something. Aslo if you
- noticed I reworked your program in C++ format rather than C. Try using C++
- from now on, because as I have found it C++ is cleaner and has less
- complicated syntax than C.
-
- Your Friend,
-
- Peter Felten
- peterf@gears.efn.org
- peterf@rosenet.net
-
-
-
-